package com.projet.carte.menu;


/**
 * Pojo pour le item d'un menu
 * @author 
 *
 */
public class ActionItem {
	String chapitre = null;
	int page = 0;
	String resume = null;
	String resume_text = null;
	
	private int actionId = -1;
    private boolean selected;
    private boolean sticky;
	
    /**
     * Constructor
     * 
     * @param actionId  Action id for case statements
     * @param title     Title
     * @param icon      Icon to use
     */
    public ActionItem(int actionId, String chapitre, int page, String resume, String resume_text) {
        this.chapitre = chapitre;
        this.page = page;
        this.resume = resume;
        this.resume_text = resume_text;
        
        this.actionId = actionId;
    }
    

    
    /**
     * Set sticky status of button
     * 
     * @param sticky  true for sticky, pop up sends event but does not disappear
     */
    public void setSticky(boolean sticky) {
        this.sticky = sticky;
    }
    
    /**
     * @return  true if button is sticky, menu stays visible after press
     */
    public boolean isSticky() {
        return sticky;
    }
    
	/**
	 * Set selected flag;
	 * 
	 * @param selected Flag to indicate the item is selected
	 */
	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	
	/**
	 * Check if item is selected
	 * 
	 * @return true or false
	 */
	public boolean isSelected() {
		return this.selected;
	}



	public String getChapitre() {
		return chapitre;
	}



	public void setChapitre(String chapitre) {
		this.chapitre = chapitre;
	}



	public int getPage() {
		return page;
	}



	public void setPage(int page) {
		this.page = page;
	}



	public String getResume() {
		return resume;
	}



	public void setResume(String resume) {
		this.resume = resume;
	}



	public String getResume_text() {
		return resume_text;
	}



	public void setResume_text(String resume_text) {
		this.resume_text = resume_text;
	}



	public int getActionId() {
		return actionId;
	}



	public void setActionId(int actionId) {
		this.actionId = actionId;
	}

}